package xyz.zhouzhaodong.crm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import xyz.zhouzhaodong.crm.dto.CostDto;
import xyz.zhouzhaodong.crm.entity.Cost;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 费用表 Mapper 接口
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-18
 */
public interface CostMapper extends BaseMapper<Cost> {

    /**
     * 查询费用信息
     * @param costDto
     * @return
     */
    List<CostDto> selectContract(@Param("costDto") CostDto costDto);

    /**
     * 获取customer_id
     * @param costDto
     * @return
     */
    List<Cost> selectCustomerIdList(@Param("costDto") CostDto costDto);

}
